<script setup>
import { useI18n } from 'vue-i18n'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { library } from '@fortawesome/fontawesome-svg-core'
import { 
  faMobileScreen, 
  faCreditCard, 
  faMoneyBillWave 
} from '@fortawesome/free-solid-svg-icons'

// 添加图标到库中
library.add(faMobileScreen, faCreditCard, faMoneyBillWave)

const { t } = useI18n()
</script>

<template>
  <section class="payment-section">
    <div class="payment-container">
      <div class="payment-option">
        <div class="icon-hexagon">
          <font-awesome-icon :icon="faMobileScreen" size="2x" class="fa-icon" />
        </div>
        <h3 class="payment-title">移动支付</h3>
        <p class="payment-subtitle">Total Users</p>
      </div>
      
      <div class="payment-option">
        <div class="icon-hexagon">
          <font-awesome-icon :icon="faCreditCard" size="2x" class="fa-icon" />
        </div>
        <h3 class="payment-title">银行卡支付</h3>
        <p class="payment-subtitle">Total Tours</p>
      </div>
      
      <div class="payment-option">
        <div class="icon-hexagon">
          <font-awesome-icon :icon="faMoneyBillWave" size="2x" class="fa-icon" />
        </div>
        <h3 class="payment-title">现金支付</h3>
        <p class="payment-subtitle">Social Likes</p>
      </div>
    </div>
  </section>
</template>

<style scoped>
.payment-section {
  background-color: #00C389;
  background-image: url('@/assets/PO-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  width: 100%;
  height: 460px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.payment-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.payment-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.payment-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 15px;
  flex: 1;
}

.icon-hexagon {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  position: relative;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fa-icon {
  color: white;
  font-size: 28px;
}

.payment-title {
  font-size: 2.5rem;
  color: white;
  font-weight: 600;
  margin-bottom: 8px;
}

.payment-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.yuan-symbol {
  font-size: 42px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .payment-section {
    height: auto;
    min-height: 460px;
    padding: 60px 0;
  }
  
  .payment-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .payment-option {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .payment-section {
    height: auto;
    min-height: 460px;
    padding: 40px 0;
  }
  
  .payment-title {
    font-size: 2rem;
  }
  
  .icon-hexagon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }
  
  .fa-icon {
    font-size: 20px;
  }
}
</style> 